home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Jun 90 / MacApp.Tech$ 6⁄22⁄90 / 1462-MBAR 129-Jun90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  818 b   |  35 lines  |  [TEXT/GEOL]

  1. Item    1770405                         19-June-90        02:37PDT
  2.  
  3. From:   AUST0134                        Jam Software Sydney,IVR
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    MBAR 129
  8.  
  9. Dear MacAppers,
  10.  
  11. According to the manual, MBAR 129 contains the resources of menus which are
  12. read in by MacApp, but not displayed, so the application can add them when
  13. required.  I tried this with the following bit of code, but I get a nil
  14. MenuHandle:
  15.  
  16. /*Rez:*/
  17. resource 'MBAR' (129) {
  18.    {mReports}
  19. };
  20.  
  21. (*Application code:*)
  22.    rMenu := GetMHandle(mReports);  {mReports is the same as for Rez}
  23. {at this point rMenu is NIL}
  24.    MAInsertMenu(rMenu,0);  {with a NIL MenuHandle - bombaroozo!}
  25.  
  26.  
  27. Does anyone know if this is supposed to work?
  28.  
  29. Thanx,
  30.  
  31. Tseung Cheung
  32. JAM Software Pty Ltd
  33. ALink AUST0134
  34.  
  35.